package com.heima.Controller;

import com.heima.Server.ArticleAuthorServer;
import com.heima.model.Article.Pojo.ApAuthor;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("author")
public class ArticleAuthorController {
    @Autowired
    ArticleAuthorServer articleAuthorServer;
    @PostMapping("/add")
    public ResponseResult AuthorAdd(@RequestBody ApAuthor apAuthor)
    {
        return articleAuthorServer.AddUser(apAuthor);
    }

}
